package org.misty.redis.autoconfigure.locker;

import lombok.Getter;
import lombok.Setter;
import org.misty.redis.locker.ILockerConfig;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author Misty on 2020-06-10
 */
@Getter
@Setter
@ConfigurationProperties(prefix = "redis-tools.locker.default")
public class DefaultLockerProperties implements ILockerConfig {
    /**
     * 锁超时时间 (ms)
     * 默认 10s
     */
    private Integer expireTime;

    /**
     * 锁等待时间 (ms)
     * 默认 0 永不过期
     */
    private Integer acquireTimeout;
}
